<template>
	<view class="infoBg">
		<text style="color: #A7A7A7;">{{title|filterNull}}</text>
		<view class="info-content" @click="itemClick">
			<text style="color: #333333;">{{content|filterNull}}</text>
			<slot name="addOther"></slot>
		</view>
	</view>
</template>

<script>
	export default {
		name: "title-content",
		data() {
			return {
				
			}
		},
		
		props: {
			title: {
				type: String,
				default:'标题'
			},
			
			content: {
				type: String,
				default:'内容'
			}
		},
		methods:{
			itemClick(){
				this.$emit('onclick', true);
			}
		}
		
	}
</script>

<style lang="scss">
	.infoBg {
		display: flex;
		background-color: $xz-bgColor-write;
		padding: 0rpx 20rpx;
		// width: 100%;
		height: auto;
		align-items: center;
		margin: 4px 0;
		.info-content {
		  margin-left: 10rpx;
		  align-items: center;
		  display: flex;
		  align-items: center;
		}
	}
	
	text {
	   font-size: 24rpx;	
	}
</style>
